package cn.declare.service.impl;


import cn.declare.bean.Energy;
import cn.declare.bean.Keyparts;
import cn.declare.dao.EnergyMapper;
import cn.declare.dao.KeyMapper;
import cn.declare.service.EnergyService;
import cn.declare.service.KeyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnergyServiceImpl implements EnergyService {
    @Autowired
    private EnergyMapper energyMapper;
    @Override
    public List<Energy> getenList(int pageIndex, String energyName) {
        return energyMapper.getList(pageIndex, energyName);
    }

}
